package edu.gdkm.pay;

public class StudentTest {
    public static void main(String[] args) {
        // 调用无参数的构造方法
        Student student1 = new Student();
        student1.studentId = "100001";
        student1.name = "李四";
        student1.cScore = 88;
        student1.computerScore = 89;
        student1.englishScore = 87;
        System.out.println("学生1的平均分: " + student1.avg());

        // 调用包含所有参数的构造方法
        Student student2 = new Student("100002", "王五", 90, 91, 89);
        System.out.println("学生2的平均分:: " + student2.avg());

        // 调用只包含学生基本信息的构造方法
        Student student3 = new Student("100003", "赵六");
        student3.cScore = 85;
        student3.computerScore = 86;
        student3.englishScore = 84;
        System.out.println("学生3的平均分:: " + student3.avg());
    }
}